<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
    <title>吉象出海 - 全部服务</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #EAA82A;  /* 大象黄 - 品牌主色 */
            --secondary: #2E8B57; /* 森林绿 - 辅助色 */
            --dark: #1a2e3b;     /* 深蓝色 */
            --danger: #D0021B;   /* 警示红 */
            --text: #374151;    /* 主要文字色 */
            --light-bg: #F8F9FA; /* 浅灰背景 */
            --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
            --ad-green: #2E8B57; /* 广告绿色 */
            --ad-yellow: #FEEFC3; /* 广告黄色 */
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }     a {
            color: inherit;
            text-decoration: none;
        }
        
        body {
            background-color: #fff;
            color: var(--text);
            max-width: 428px;
            margin: 0 auto;
            padding-bottom: 0;
            position: relative;
        }
        
        /* 顶部品牌区 - 与home.html一致 */
        .brand-header {
            text-align: center;
            padding: 12px 0;
            background: linear-gradient(to bottom, #ffffff, #F8F9FA);
            position: relative;
            border-radius: 0;
            margin-bottom: 0;
            color: var(--primary);
        }
        
        .brand-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 4px;
            position: relative;
            display: inline-block;
        }
        
        .brand-subtitle {
            font-size: 12px;
            color: var(--text);
            letter-spacing: 2px;
            opacity: 0.8;
            margin-top: 0;
            padding: 0;
            line-height: normal;
        }
        
        .rate-badge {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--secondary);
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }
        
        /* 用户切换 */
        .user-switch {
            display: flex;
            background: var(--light-bg);
            border-radius: 20px;
            margin: 15px;
            overflow: hidden;
        }
        
        .user-tab {
            flex: 1;
            text-align: center;
            padding: 12px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .user-tab.active {
            background: var(--primary);
            color: white;
        }
        
        /* 服务区域 */
        .services-container {
            padding: 0 15px;
            margin-bottom: 80px; /* 为底部导航留出空间 */
        }
        
        .section-title {
            font-size: 18px;
            font-weight: 700;
            margin: 20px 0 15px;
            display: flex;
            align-items: center;
            position: relative;
            padding-left: 12px;
        }
        
        .section-title::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 20px;
            background: var(--primary);
            border-radius: 2px;
        }
        
        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .service-card {
            background: white;
            border-radius: 12px;
            padding: 15px 10px;
            text-align: center;
            box-shadow: var(--card-shadow);
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }
        
        .service-icon {
            width: 50px;
            height: 50px;
            margin: 0 auto 10px;
            background: var(--light-bg);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: var(--primary);
        }
        
        .service-name {
            font-size: 13px;
            font-weight: 500;
            margin-top: 5px;
        }
        
        .service-desc {
            font-size: 11px;
            color: #6B7280;
            margin-top: 5px;
            height: 32px;
            overflow: hidden;
        }
        
        /* 工具箱样式 */
        .toolbox-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .tool-card {
            background: white;
            border-radius: 12px;
            padding: 15px;
            box-shadow: var(--card-shadow);
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .tool-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.1);
        }
        
        .tool-header {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .tool-icon {
            width: 40px;
            height: 40px;
            background: var(--light-bg);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: var(--primary);
            margin-right: 12px;
        }
        
        .tool-name {
            font-size: 15px;
            font-weight: 600;
        }
        
        .tool-features {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }
        
        .tool-feature {
            background: var(--light-bg);
            color: var(--text);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
        }
        
        /* 服务详情弹窗 */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }
        
        .modal.active {
            opacity: 1;
            pointer-events: all;
        }
        
        .modal-content {
            background: white;
            width: 90%;
            max-width: 380px;
            border-radius: 16px;
            padding: 25px;
            position: relative;
            transform: translateY(20px);
            transition: transform 0.3s;
        }
        
        .modal.active .modal-content {
            transform: translateY(0);
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: #9CA3AF;
        }
        
        .modal-icon {
            width: 60px;
            height: 60px;
            background: var(--light-bg);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: var(--primary);
            margin: 0 auto 15px;
        }
        
        .modal-title {
            font-size: 20px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 10px;
        }
        
        .modal-desc {
            font-size: 14px;
            color: #6B7280;
            line-height: 1.6;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .modal-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 30px;
            font-size: 16px;
            font-weight: 600;
            width: 100%;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .modal-btn:hover {
            background: #d6941a;
        }
        
        /* 优化后的底部导航菜单 - 与home.html一致 */
        .tab-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            background: white;
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
            padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
            z-index: 1000;
            max-width: 428px;
            margin: 0 auto;
            border-radius: 20px 20px 0 0;
        }
        
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 8px 5px 10px;
            min-height: 60px;
            border-radius: 16px;
            margin: 0 5px;
            transition: all 0.2s ease;
            position: relative;
            cursor: pointer;
        }
        
        .tab-item::after {
            content: '';
            position: absolute;
            top: -15px;
            bottom: -15px;
            left: 0;
            right: 0;
        }
        
        .tab-icon {
            font-size: 1.4rem;
            margin-bottom: 4px;
            transition: all 0.2s ease;
        }
        
        .tab-label {
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        .tab-item.active {
            background: rgba(234, 168, 42, 0.15);
        }
        
        .tab-item.active .tab-icon {
            color: var(--primary);
            transform: scale(1.1);
        }
        
        .tab-item.active .tab-label {
            color: var(--primary);
            font-weight: 600;
        }
        
        .tab-item:not(.active):hover {
            background: rgba(0, 0, 0, 0.03);
        }
        
        .tab-item:not(.active) .tab-icon {
            color: #6c757d;
        }
        
        .tab-item:not(.active) .tab-label {
            color: #495057;
        }
        
        /* 大象品牌元素装饰 */
        .elephant-decoration {
            position: absolute;
            top: 15px;
            left: 20px;
            opacity: 0.15;
            font-size: 32px;
            transform: rotate(-15deg);
            z-index: 0;
            color: var(--primary);
        }
        
        /* 响应式调整 */
        @media (max-width: 375px) {
            .tab-icon {
                font-size: 1.3rem;
            }
            
            .tab-label {
                font-size: 11px;
            }
            
            .brand-title {
                font-size: 24px;
            }
            
            .brand-subtitle {
                font-size: 14px;
            }
            
            .services-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
    </style>
</head>
<body>
    <!-- 顶部品牌区域 - 与home.html一致 -->

    <header class="brand-header">
        <div class="elephant-decoration">
            <i class="fas fa-elephant"></i>
        </div>
        <div class="brand-title">吉象出海</div>
        <div class="brand-subtitle">泰国专业房地产服务平台</div>
       
    </header>
        <div class="container">
        <!-- 页面标题 -->
        <div class="page-title">
            <div class="back-btn" style="visibility: hidden;"></div>
           全部服务
        </div>
        
	
    <!-- 用户切换 -->
    <div class="user-switch">
        <div class="user-tab active" data-user="normal">普通用户</div>
        <div class="user-tab" data-user="agent">中介用户</div>
    </div>
    
    <!-- 普通用户服务 -->
    <div id="normalServices" class="services-container">
        <div class="section-title">找房服务</div>
        <div class="services-grid">
            <div class="service-card" data-service="newHouse">
                <div class="service-icon"><i class="fas fa-home"></i></div>
                <div class="service-name">新房</div>
                <div class="service-desc">泰国精选新房源</div>
            </div>
            <div class="service-card" data-service="secondHouse">
                <div class="service-icon"><i class="fas fa-house-user"></i></div>
                <div class="service-name">二手房</div>
                <div class="service-desc">高性价比二手房</div>
            </div>
            <div class="service-card" data-service="rent">
                <div class="service-icon"><i class="fas fa-bed"></i></div>
                <div class="service-name">租房</div>
                <div class="service-desc">长短租公寓房源</div>
            </div>
            <div class="service-card" data-service="land">
                <div class="service-icon"><i class="fas fa-mountain"></i></div>
                <div class="service-name">土地</div>
                <div class="service-desc">开发用地与农田</div>
            </div>
            <div class="service-card" data-service="factory">
                <div class="service-icon"><i class="fas fa-industry"></i></div>
                <div class="service-name">厂房</div>
                <div class="service-desc">工业用地与厂房</div>
            </div>
            <div class="service-card" data-service="vr">
                <div class="service-icon"><i class="fas fa-vr-cardboard"></i></div>
                <div class="service-name">VR看房</div>
                <div class="service-desc">沉浸式看房体验</div>
            </div>
        </div>
        
        <div class="section-title">配套服务</div>
        <div class="services-grid">
            <div class="service-card" data-service="visa">
                <div class="service-icon"><i class="fas fa-passport"></i></div>
                <div class="service-name">签证</div>
                <div class="service-desc">泰国签证办理</div>
            </div>
            <div class="service-card" data-service="exchange">
                <div class="service-icon"><i class="fas fa-money-bill-wave"></i></div>
                <div class="service-name">汇率</div>
                <div class="service-desc">实时汇率查询</div>
            </div>
            <div class="service-card" data-service="news">
                <div class="service-icon"><i class="fas fa-newspaper"></i></div>
                <div class="service-name">头条</div>
                <div class="service-desc">泰国房产资讯</div>
            </div>
            <div class="service-card" data-service="law">
                <div class="service-icon"><i class="fas fa-gavel"></i></div>
                <div class="service-name">法律咨询</div>
                <div class="service-desc">房产法律支持</div>
            </div>
            <div class="service-card" data-service="loan">
                <div class="service-icon"><i class="fas fa-calculator"></i></div>
                <div class="service-name">贷款计算</div>
                <div class="service-desc">房贷精准计算</div>
            </div>
            <div class="service-card" data-service="tax">
                <div class="service-icon"><i class="fas fa-file-invoice-dollar"></i></div>
                <div class="service-name">税费计算</div>
                <div class="service-desc">房产税费预估</div>
            </div>
        </div>
    </div>
    
    <!-- 中介用户服务 -->
    <div id="agentServices" class="services-container" style="display: none;">
        <div class="section-title">中介工具箱</div>
        
        <div class="toolbox-grid">
            <div class="tool-card" data-service="findTool">
                <div class="tool-header">
                    <div class="tool-icon"><i class="fas fa-search-location"></i></div>
                    <div class="tool-name">找房工具</div>
                </div>
                <div class="service-desc">快速查找优质房源，支持多条件筛选</div>
                <div class="tool-features">
                    <div class="tool-feature">房源搜索</div>
                    <div class="tool-feature">地图找房</div>
                    <div class="tool-feature">新房采集</div>
                </div>
            </div>
            
            <div class="tool-card" data-service="houseManagement">
                <div class="tool-header">
                    <div class="tool-icon"><i class="fas fa-home"></i></div>
                    <div class="tool-name">房源管理</div>
                </div>
                <div class="service-desc">高效管理房源信息，一键发布多平台</div>
                <div class="tool-features">
                    <div class="tool-feature">房源录入</div>
                    <div class="tool-feature">上下架管理</div>
                    <div class="tool-feature">VR制作</div>
                </div>
            </div>
            
            <div class="tool-card" data-service="crossBorder">
                <div class="tool-header">
                    <div class="tool-icon"><i class="fas fa-globe-asia"></i></div>
                    <div class="tool-name">跨境服务</div>
                </div>
                <div class="service-desc">为国际客户提供专业跨境支持</div>
                <div class="tool-features">
                    <div class="tool-feature">合同翻译</div>
                    <div class="tool-feature">跨境支付</div>
                    <div class="tool-feature">税务代办</div>
                </div>
            </div>
            
            <div class="tool-card" data-service="customerManagement">
                <div class="tool-header">
                    <div class="tool-icon"><i class="fas fa-users"></i></div>
                    <div class="tool-name">客户管理</div>
                </div>
                <div class="service-desc">全流程客户管理，提升转化效率</div>
                <div class="tool-features">
                    <div class="tool-feature">客户跟进</div>
                    <div class="tool-feature">需求分析</div>
                    <div class="tool-feature">分组管理</div>
                </div>
            </div>
            
            <div class="tool-card" data-service="finance">
                <div class="tool-header">
                    <div class="tool-icon"><i class="fas fa-chart-line"></i></div>
                    <div class="tool-name">金融服务</div>
                </div>
                <div class="service-desc">专业金融工具助力交易达成</div>
                <div class="tool-features">
                    <div class="tool-feature">贷款方案</div>
                    <div class="tool-feature">税费计算</div>
                    <div class="tool-feature">收益分析</div>
                </div>
            </div>
            
            <div class="tool-card" data-service="dataAnalysis">
                <div class="tool-header">
                    <div class="tool-icon"><i class="fas fa-database"></i></div>
                    <div class="tool-name">数据分析</div>
                </div>
                <div class="service-desc">市场趋势分析，数据驱动决策</div>
                <div class="tool-features">
                    <div class="tool-feature">区域行情</div>
                    <div class="tool-feature">竞品分析</div>
                    <div class="tool-feature">客户画像</div>
                </div>
            </div>
        </div>
        
        <div class="section-title">增值服务</div>
        <div class="services-grid">
            <div class="service-card" data-service="training">
                <div class="service-icon"><i class="fas fa-graduation-cap"></i></div>
                <div class="service-name">专业培训</div>
                <div class="service-desc">提升业务能力</div>
            </div>
            <div class="service-card" data-service="marketing">
                <div class="service-icon"><i class="fas fa-bullhorn"></i></div>
                <div class="service-name">营销支持</div>
                <div class="service-desc">专业推广方案</div>
            </div>
            <div class="service-card" data-service="contract">
                <div class="service-icon"><i class="fas fa-file-contract"></i></div>
                <div class="service-name">合同模板</div>
                <div class="service-desc">标准化法律文件</div>
            </div>
        </div>
    </div>
    
    <!-- 服务详情弹窗 -->
    <div class="modal" id="serviceModal">
        <div class="modal-content">
            <div class="close-modal" id="closeModal"><i class="fas fa-times"></i></div>
            <div class="modal-icon" id="modalIcon"></div>
            <div class="modal-title" id="modalTitle">服务标题</div>
            <div class="modal-desc" id="modalDesc">服务描述将显示在这里</div>
            <button class="modal-btn" id="modalBtn">立即使用</button>
        </div>
    </div>
    
    <!-- 优化后的底部导航菜单 - 与home.html一致 -->
    <div class="tab-bar">
        <div class="tab-item">
            <div class="tab-icon"><i class="fas fa-home"></i></div>
            <div class="tab-label" ><a href="home.html">首页</a></div>
        </div>
        <div class="tab-item">
            <div class="tab-icon"><i class="fas fa-comment-dots"></i></div>
            <div class="tab-label">消息</div>
        </div>
        <div class="tab-item">
            <div class="tab-icon"><i class="fas fa-plus-circle"></i></div>
            <div class="tab-label">发布</div>
        </div>
        <div class="tab-item active">
            <div class="tab-icon"><i class="fas fa-handshake"></i></div>
            <div class="tab-label">委托</div>
        </div>
        <div class="tab-item">
            <div class="tab-icon"><i class="fas fa-user"></i></div>
            <div class="tab-label">我的</div>
        </div>
    </div>
    
    <script>
        // 用户身份切换
        const userTabs = document.querySelectorAll('.user-tab');
        const normalServices = document.getElementById('normalServices');
        const agentServices = document.getElementById('agentServices');
        
        userTabs.forEach(tab => {
            tab.addEventListener('click', function() {
                // 更新标签状态
                userTabs.forEach(t => t.classList.remove('active'));
                this.classList.add('active');
                
                // 显示对应服务区域
                const userType = this.getAttribute('data-user');
                if (userType === 'normal') {
                    normalServices.style.display = 'block';
                    agentServices.style.display = 'none';
                } else {
                    normalServices.style.display = 'none';
                    agentServices.style.display = 'block';
                }
            });
        });
        
        // 服务弹窗
        const serviceModal = document.getElementById('serviceModal');
        const modalIcon = document.getElementById('modalIcon');
        const modalTitle = document.getElementById('modalTitle');
        const modalDesc = document.getElementById('modalDesc');
        const closeModal = document.getElementById('closeModal');
        const modalBtn = document.getElementById('modalBtn');
        
        // 服务项点击事件
        const serviceCards = document.querySelectorAll('.service-card, .tool-card');
        serviceCards.forEach(card => {
            card.addEventListener('click', function() {
                const serviceType = this.getAttribute('data-service');
                showServiceDetails(serviceType);
            });
        });
        
        // 显示服务详情
        function showServiceDetails(serviceType) {
            let title, desc, iconClass;
            
            switch(serviceType) {
                case 'newHouse':
                    title = '泰国新房';
                    desc = '精选泰国高品质新建公寓、别墅项目，提供项目详情、开发商信息、价格走势分析等全方位信息，助您找到理想家园。';
                    iconClass = 'fas fa-home';
                    break;
                case 'secondHouse':
                    title = '二手房交易';
                    desc = '真实可靠的二手房源，提供房屋评估、交易流程指导、法律咨询等一站式服务，保障交易安全。';
                    iconClass = 'fas fa-house-user';
                    break;
                case 'findTool':
                    title = '智能找房工具';
                    desc = '专业级房源搜索工具，支持多维度筛选、地图找房、新房源推送等功能，提升找房效率。';
                    iconClass = 'fas fa-search-location';
                    break;
                case 'houseManagement':
                    title = '房源管理系统';
                    desc = '高效管理您的房源信息，支持一键发布到多个平台，提供VR制作、数据统计等高级功能。';
                    iconClass = 'fas fa-home';
                    break;
                case 'customerManagement':
                    title = '客户关系管理';
                    desc = '全面管理客户信息，跟踪客户需求，分析客户行为，提升转化率和客户满意度。';
                    iconClass = 'fas fa-users';
                    break;
                case 'dataAnalysis':
                    title = '市场数据分析';
                    desc = '获取泰国房产市场实时数据，分析区域行情、价格走势，为您的决策提供数据支持。';
                    iconClass = 'fas fa-database';
                    break;
                default:
                    title = '吉象出海服务';
                    desc = '泰国房产专业服务平台，为您提供全方位房产相关服务。';
                    iconClass = 'fas fa-elephant';
            }
            
            modalIcon.innerHTML = `<i class="${iconClass}"></i>`;
            modalTitle.textContent = title;
            modalDesc.textContent = desc;
            serviceModal.classList.add('active');
        }
        
        // 关闭弹窗
        closeModal.addEventListener('click', function() {
            serviceModal.classList.remove('active');
        });
        
        // 点击弹窗按钮
        modalBtn.addEventListener('click', function() {
            alert('即将进入' + modalTitle.textContent + '服务');
            serviceModal.classList.remove('active');
        });
        
        // 点击背景关闭弹窗
        serviceModal.addEventListener('click', function(e) {
            if (e.target === serviceModal) {
                serviceModal.classList.remove('active');
            }
        });
        
        // 底部导航交互 - 与home.html一致
        document.querySelectorAll('.tab-item').forEach(item => {
            item.addEventListener('click', function() {
                document.querySelectorAll('.tab-item').forEach(i => i.classList.remove('active'));
                this.classList.add('active');
                
                // 在实际应用中，这里应该添加页面跳转逻辑
                // 例如：window.location.href = '对应的页面URL';
            });
        });
        
        // 汇率实时更新模拟
        function updateRate() {
            const rate = (5.2 + (Math.random() * 0.05 - 0.025)).toFixed(2);
            document.querySelector('.rate-badge').textContent = `1¥=${rate}฿`;
        }
        setInterval(updateRate, 5000);
    </script>
</body>
</html>